import { userHome } from './router.home';
import { userRouter } from './router.user';
import { userProduct } from './router.product';

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  // 登录
  {
    path: '/',
    component: () => import('@/views/layouts/index'),
    redirect: to => {
      // 登录过，进入主页
      return 'home'
    },
    meta: {
      title: '首页'
    },
    children: [
      ...userHome,
      ...userProduct,
      ...userRouter
    ]
  }
];
